package com.markerhub.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Value;
import org.apache.ibatis.javassist.SerialVersionUID;

import javax.validation.constraints.NotBlank;

/**
 * @author jsx on 2023/1/15
 **/
@Data
@TableName("sys_dict_type")
public class SysDict {

    /**
     * 字典类型Id,采用雪花算法
     */
    @NotBlank(message = "字典类型编码不能为空")
    @TableField(value = "code")
    private  String code;

    @NotBlank(message =  "字典类型名称不能为空")
    @TableField(value = "name")
    private String name;

    @NotBlank(message = "字典类型描述不能为空")
    @TableField(value = "description")
    private String description;
}
